package com.eliza.databindadv.activity

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.databinding.DataBindingUtil
import com.eliza.databindadv.R
import com.eliza.databindadv.databinding.ActivityTwoWayBinding
import com.eliza.databindadv.twoWay.UserVmObservable
import com.eliza.databindadv.twoWay.UserVmObservableField

class TwoWayActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_two_way)

        val dbv =
            DataBindingUtil.setContentView<ActivityTwoWayBinding>(this, R.layout.activity_two_way)

        dbv.userVmOb= UserVmObservable()
        dbv.userVmOf= UserVmObservableField()
    }
}